package com.learn.cloud.datascope.propertie;


import com.learn.cloud.datascope.support.DataSourceConstants;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 数据源配置
 * @author: MI
 * @email: 448341911@qq.com
 * @createDate: 2023/11/5 19:24
 * @updateUser: MI
 * @updateDate: 2023/11/5 19:24
 * @updateRemark: 修改内容
 * @version: v1.0
 * 参考DruidDataSourceWrapper
 */
@Data
@ConfigurationProperties(prefix = DruidDataSourceProperties.PREFIX)
public class DruidDataSourceProperties {

    /**
     * datasource配置前缀
     */
    public final static String PREFIX = "spring.datasource";
    /**
     * 数据源用户名
     */
    private String username;

    /**
     * 数据源密码
     */
    private String password;

    /**
     * jdbcurl
     */
    private String url;

    /**
     * 数据源驱动
     */
    private String driverClassName;

    /**
     * 查询数据源的SQL
     */
    private String queryDsSql = DataSourceConstants.QUERY_DS_SQL;
}
